package xyz.zhouzhaodong.crm.service;

import xyz.zhouzhaodong.crm.dto.JurisdictionDto;
import xyz.zhouzhaodong.crm.entity.Jurisdiction;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhouzhaodong.crm.util.RestMessage;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-14
 */
public interface IJurisdictionService extends IService<Jurisdiction> {

    /**
     * 新增权限管理
     * @param jurisdictionDto
     * @return
     */
    RestMessage addJurisdiction(JurisdictionDto jurisdictionDto);

    /**
     * 删除权限
     * @param id
     * @param staffId
     * @return
     */
    RestMessage deleteJurisdiction(String id, String staffId);

    /**
     * 更新权限
     * @param jurisdictionDto
     * @return
     */
    RestMessage updateJurisdiction(JurisdictionDto jurisdictionDto);

    /**
     * 根据岗位id查询权限
     * @param stationId
     * @return
     */
    RestMessage selectOne(String stationId);

}
